/**
 * Created by developer on 17-2-24.
 */
$(function () {
    //点击新增按钮获取商品面料添加页面
    $(".button-add-fabric").on("click", function () {
        $(".commodity-fabric-new").css("display", "flex");
        $(".masking").css("display", "block");
    });
    //关闭新增
    $(".commodity-fabric-new").find(".cancel").on("click", function () {
        $(".commodity-fabric-new").css("display", "none");
        $(".masking").css("display", "none");
    })
    //点击更改搜索父面料
    $("#fabric_one").on("click", function () {
        $(".modal-select-fabric").css("display", "flex");
    });
    //关闭搜索父面料
    $(".modal-select-fabric").find(".cancel").on("click", function () {
        $(".modal-select-fabric").css("display", "none");
    })
});